import Base from 'models/base';

export default class Search extends Base {
  propertyList = [];

  constructor() {
    super();
  }

  setOldData() {
    super.setOldData(this.propertyList);
  }

  saveOldData(propertyList) {
    super.setOldData(propertyList);
  }

  resetOldData() {
    if (this.isChange(this.propertyList)) {
      super.resetOldData(this.propertyList);
    }
  }

  setPropertyData(property, value) {
    this[property] = value;
    super.setOldData([property]);
  }
}
